<div ng-controller="addOrderController">
    <div class="bg-light lter b-b wrapper-sm">
        <h1 class="m-n font-thin h4">{{orderName}}</h1>
    </div>
    <div class="wrapper-sm">
        <div class="panel panel-default">
            <div class="panel-body">
                <form name="orderForm" id="orderForm" class="form-validation form-horizontal" novalidate>
                    <button ng-show="false"></button>

                    <ng-form name="orderDetailForm">
                    <div class="form-group">
                        <div class="panel-heading font-bold m-t-n m-b-sm">
                            基本信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">订单编号  :</label>
                        <label class="col-lg-2 control-label pull-left text-left">{{orderId}}</label>

                        <label class="col-lg-1 pull-left control-label">子询价编号</label>
                        <div class="col-lg-2 pull-left">
                            <input type="text" class="form-control input-sm"  id="addOrderCtrl_inquiryChildId" ng-model="inquiryChildId" placeholder="子询价编号"  name="inquiryChildId">
                        </div>

                        <label class="col-lg-1 pull-left control-label">客户订单编号</label>
                        <div class="col-lg-2 pull-left">
                            <input type="text" class="form-control input-sm" ng-disabled="isOrderDis" id="addOrderCtrl_clientOrderId" ng-model="clientOrderId" placeholder="客户订单编号" maxlength="50" name="clientOrderId">
                        </div>

                        <label class="col-lg-1 pull-left control-label">紧急程度<span class="text-danger">*</span></label>
                        <div class="col-lg-1 pull-left">
                            <input type="text" class="form-control input-sm" ng-disabled="isOrderDis" id="addOrderCtrl_urgency" ng-model="urgency" placeholder="紧急程度" required name="urgency">
                        </div>
                        <div class="pull-left m-l-n-sm">
                            <select class="form-control input-sm" id="addOrderCtrl_urgencyUnit" ng-disabled="isOrderDis" ng-model="urgencyUnit" name="urgencyUnit" required ng-options="x.value as x.text for x in urgencyUnitDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="control-label text-left m-l-xs">内回复</label>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">计划专员  :</label>
                        <label class="col-lg-2 control-label pull-left text-left">{{planOfficer}}</label>
                        <label class="col-lg-1 pull-left control-label">商务专员<span class="text-danger">*</span></label>
                        <div class="pull-left m-l m-r-sm">
                            <select class="form-control input-sm" id="businessOfficerId" ng-disabled="isOrderDis" ng-model="businessOfficerId" name="businessOfficerId" required ng-options="x.id as x.realName for x in businessOfficerDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="col-lg-1 pull-left control-label">客服专员<span class="text-danger">*</span></label>
                        <div class="pull-left m-l-sm m-r-sm">
                            <select class="form-control input-sm" id="customerServiceOfficerId" ng-disabled="isOrderDis" ng-model="customerServiceOfficerId" name="customerServiceOfficerId" required ng-options="x.id as x.realName for x in customerServiceOfficerDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="col-lg-1 pull-left control-label">调度专员<span class="text-danger">*</span></label>
                        <div class="pull-left m-l-sm m-r-sm">
                            <select class="form-control input-sm" id="dispatchOfficerId" ng-disabled="isOrderDis" ng-model="dispatchOfficerId" name="dispatchOfficerId" required ng-options="x.id as x.realName for x in dispatchOfficerDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">客户单位<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <div angucomplete-alt id="client" disable-input="isOrderDis" placeholder="" pause="100"  selected-object="onClientSelected" remote-api-handler="onClientAutoComplate" local-data="clientData" search-fields="name" title-field="name" minlength="1" input-class="form-control form-control-small input-sm"
                                initial-value="clientName" match-class="highlight">
                            </div>
                        </div>
                        <label class="col-lg-1 pull-left control-label pd5">发货计划人<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <div angucomplete-alt id="consignor" placeholder="" pause="100"  disable-input="isOrderDis" selected-object="onConsignorSelected" remote-api-handler="onConsignorAutoComplate" search-fields="realName" title-field="realName" minlength="1" input-class="form-control form-control-small input-sm"
                                initial-value="consignorName" match-class="highlight">
                            </div>
                        </div>
                        <label class="col-lg-1 pull-left control-label pd5">发货人电话<span class="text-danger">*</span></label>
                        <div class="col-lg-2">
                            <input type="text" id="addOrderCtrl_consignorPhone" class="form-control input-sm" ng-disabled="isOrderDis" ng-model="consignorPhone" placeholder="请填写发货人电话" required name="consignorPhone" ng-pattern="/^1\d{10}$/" disabled="disabled">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label">发货内容  :</label>
                        <div class="col-lg-10">
                            <textarea class="form-control input-sm" id="addOrderCtrl_shipPriceContent" ng-disabled="isOrderDis" ng-model="shipPriceContent" placeholder="请填写发货内容" name="shipPriceContent"></textarea>
                        </div>
                    </div>
                    </ng-form>


                    <ng-form name="orderTotalForm">
                        <div class="form-group">
                            <div class="panel-heading font-bold">
                                线路货物应收信息<span class="text-danger">*</span>
                            </div>
                            <div class="wrapper-sm font-bold">
                                线路信息
                            </div>
                            <label class="w-sm pull-left control-label">发货地址<span class="text-danger">*</span></label>
                            <div class="col-lg-10">
                                <tms-address class="pull-left" province="shipProvinceCode" city="shipCityCode" area="shipAreaCode" city-list="shipCityList" area-list="shipAreaList" required="isRequired" ischecked="ischecked">
                                </tms-address>
                                <div class="col-lg-4 m-l-n-sm">
                                    <input type="text" id="addOrderCtrl_shipAddress" class="form-control input-sm" ng-model="shipAddress" placeholder="请填写详细地址" required name="shipdetail">
                                </div>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">送货地址<span class="text-danger">*</span></label>
                            <div class="col-lg-10">
                                <tms-address class="pull-left" city-list="deliverCityList" area-list="deliverAreaList" province="deliverProvinceCode" city="deliverCityCode" area="deliverAreaCode" required="isRequired" ischecked="ischecked"></tms-address>
                                <div class="col-lg-4 m-l-n-sm">
                                    <input type="text" id="addOrderCtrl_deliverAddress" class="form-control input-sm" ng-model="deliverAddress" placeholder="请填写详细地址" required name="deliverdetail">
                                </div>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">中转地</label>
                            <div class="col-lg-10 form-inline">
                                <tms-address class="pull-left" city-list="viaCityList" area-list="viaAreaList" province="viaProvince" city="viaCity" area="viaArea" required="false" isSelected="false"></tms-address>
                                <a class="btn btn-info btn-addon m-l-xs btn-sm" id="addOrderCtrl_addViaFn" ng-click="addVia($event)"><i class="fa fa-plus"></i>添加中转地</a>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label"></label>
                            <div class="col-lg-7">
                                <span class="ui-select-bootstrap dropdown form-control">
                                    <span ng-repeat="item in viaListData">
                                        <span style="margin-right: 3px; margin-bottom:3px;" class="ui-select-match-item btn btn-default btn-xs">
										<span class="close ui-select-match-close" ng-click="deleteVia(item.index)">&nbsp;×
									</span>
                                <span>{{item.province}}{{item.city}}{{item.county}}</span>
                                </span>
                                </span>
                                </span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="w-sm pull-left control-label">发货时间<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <div class="input-group input-group-sm date">
                                    <input required name="dataTime" id="dataTime" datetimepicker plugintype="datetime" ng-model="shipTime" placeholder="发货时间" class="form-control" type="text" />
                                    <span id="opendataTime" class="input-group-addon curpoint">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                            </div>
                            <label class="pull-left control-label">到货时间<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <div class="input-group input-group-sm date">
                                    <input required name="dataTimeEnd" id="dataTimeEnd" datetimepicker plugintype="datetime" ng-model="arriveTime" placeholder="到货时间" class="form-control" type="text" />
                                    <span id="opendataTimeEnd" class="input-group-addon curpoint">
                                        <span class="glyphicon glyphicon-calendar"></span>
                                    </span>
                                </div>
                            </div>
                            <label class="pull-left control-label">里程数</label>
                            <div class="col-lg-2">
                                <input type="text" id="addOrderCtrl_mileage" class="form-control input-sm" ng-pattern="/^[+]?\d+\.?\d*$/" ng-model="mileage" placeholder="请填写里程数" name="mileage">
                            </div>
                            <label class="pull-left control-label">公里</label>
                        </div>
                        <div class="form-group">
                            <div class="wrapper-sm font-bold m-t-n">
                                货物信息
                            </div>
                            <label class="w-sm pull-left control-label">货物类别<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <select id="goodsType" name="goodsTypeId" class="form-control input-sm" required ng-model="goodsTypeId" ng-change="changeGoodsTypeEvent()" ng-options="x.id as x.name for x in goodsTypeDropDown">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <label class="pull-left control-label">货物名称<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                              
                                <div angucomplete-alt id="goodsId" placeholder="" pause="100" selected-object="onGoodsNameSelected" remote-api-handler="onGoodsNameAutoComplate" search-fields="name" title-field="name" minlength="0" input-class="form-control form-control-small input-sm"
                                    initial-value="goodsName" match-class="highlight" field-required="true" input-name="goodsId" auto-match="true" focus-first="true">
                                </div>
                            </div>
                            <label class="pull-left control-label">吨位范围<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <select class="form-control input-sm" id="tonRange" ng-change="changeTonRangeGetReceivableEvent()" ng-model="tonRange" name="tonRange" ng-options="x.tonnageRange as x.tonnageRange for x in tonRangeDropDown">
                                    <option value="">其它</option>
                                </select>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">货物数量<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <input type="text" ng-pattern="/^[0-9]+(.[0-9]{1,4})?$/" id="addOrderCtrl_goodsNum" class="form-control input-sm" ng-model="goodsNum" placeholder="请填写货物数量" required name="goodsNum">
                            </div>
                            <div class="pull-left m-l-n-sm">
                                <select class="form-control input-sm" id="goodsNumUnit" ng-model="goodsNumUnit" name="goodsNumUnit" required ng-options="x.value as x.text for x in goodsNumUnitDropDown">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <label class="pull-left m-l control-label">货物数量2</label>
                            <div class="col-lg-2">
                                <input type="text" id="addOrderCtrl_goodsNumTwo" ng-pattern="/^[0-9]+(.[0-9]{1,4})?$/" class="form-control input-sm" ng-model="goodsNumTwo" placeholder="请填写货物数量2" name="goodsNumTwo">
                            </div>
                            <div class="pull-left m-l-n-sm">
                                <select class="form-control input-sm" id="goodsNumTwoUnit" ng-model="goodsNumTwoUnit" name="goodsNumTwoUnit" ng-options="x.value as x.text for x in goodsNumUnitDropDown">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <div class="pull-left m-l">
                                <button class="btn  btn-info btn-addon btn-sm" id="addOrderCtrl_addOrderLineFn" ng-show="showAddOrderBtn" ng-disabled="!orderTotalForm.$valid || !orderDetailForm.$valid" ng-click="addOrderLine()"><i class="fa fa-plus"></i>新增总线路</button>
                            </div>
                            <div class="pull-left m-l">
                                <button class="btn  btn-success btn-addon btn-sm" id="addOrderCtrl_saveOrderLineFn" ng-show="!showAddOrderBtn" ng-disabled="!orderTotalForm.$valid" ng-click="saveOrderLine(true)"><i class="glyphicon glyphicon-floppy-saved"></i>保存总线路</button>
                            </div>
                        </div>
                    </ng-form>
                    <div class="line line-border b-b line-lg"></div>
                    <ng-form name="orderChildrenForm">
                        <div class="form-group">
                            <div class="wrapper-sm font-bold m-t-n">
                                应收价格信息
                            </div>
                            <label class="w-sm pull-left control-label">应收单价<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <input type="text" ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/" id="addOrderCtrl_receivablePrice" class="form-control input-sm" ng-model="receivablePrice" placeholder="请填写应收单价" required name="receivablePrice">
                            </div>
                            <div class="pull-left m-l-n-sm">
                                <select class="form-control input-sm" id="receivablePriceUnit" ng-model="receivablePriceUnit" name="receivablePriceUnit" ng-options="x.value as x.text for x in priceUnitDropDown" required>
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <label class="pull-left m-l control-label">应收总价</label>
                            <div class="col-lg-2">
                                <input type="text" ng-pattern="/^[0-9]+(\.[0-9]{1,2})?$/" id="addOrderCtrl_receivableTotal" class="form-control input-sm" ng-model="receivableTotal" placeholder="请填写应收总价" name="receivableTotal">
                            </div>
                            <label class="pull-left m-l-n-sm control-label">元</label>
                            <label class="m-l pull-left control-label">结算方式<span class="text-danger">*</span></label>
                            <div class="pull-left m-l-sm m-r-sm">
                                <select class="form-control input-sm" id="settleType" ng-model="settleType" name="settleType" ng-options="x.value as x.text for x in settleTypeDropDown" required>
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <label class="m-l-xs pull-left control-label">含税<span class="text-danger">*</span></label>
                            <div class="pull-left m-l-sm m-r-sm">
                                <select class="form-control input-sm" id="includeTax" ng-model="includeTax" name="includeTax" ng-options="x.value as x.text for x in includeTaxDropDown" required>
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">应收说明</label>
                            <div class="col-lg-4">
                                <input type="text" class="form-control input-sm" id="addOrderCtrl_receivableRemarks" ng-model="receivableRemarks" placeholder="请填写应收说明" name="receivableRemarks">
                            </div>
                            <label class="pull-left control-label">结算单位<span class="text-danger">*</span></label>
                            <div class="col-lg-4">
                               
                                <div angucomplete-alt id="reckoner" placeholder="" pause="100" selected-object="onsettleSelected" remote-api-handler="onSettleAutoComplate" search-fields="name" title-field="name" minlength="0" input-class="form-control form-control-small input-sm" initial-value="reckoner"
                                    match-class="highlight" field-required="true" input-name="reckoner">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="wrapper-sm font-bold m-t-n">
                                工程信息
                            </div>
                            <label class="w-sm pull-left control-label">工程名称</label>
                            <div class="col-lg-3">
                                <div angucomplete-alt id="project" placeholder="" pause="100" remote-api-handler="onProjectAutoComplate" selected-object="onProjectSelected" search-fields="projectName" title-field="projectName" minlength="1" input-class="form-control form-control-small input-sm"
                                    initial-value="projectName" match-class="highlight">
                                </div>
                            </div>
                            <label class="pull-left control-label w-xxs">工程编号</label>
                            <div class="col-lg-2">
                                <input type="text" id="addOrderCtrl_projectCode" class="form-control input-sm" ng-model="projectCode" placeholder="请填写工程编号" name="projectId">
                            </div>
                            <label class="pull-left control-label w-xxss">工程总量</label>
                            <div class="col-lg-2">
                                <input type="text" id="addOrderCtrl_projectTotal" class="form-control input-sm" ng-model="projectTotal" placeholder="请填写工程总量" name="projectTotal">
                            </div>
                            <div class="pull-left m-l-n-sm">
                                <select class="form-control input-sm" id="goodsQuantityUnit" ng-model="projectTotalUnit" ng-options="x.value as x.text for x in projectTotalUnitDropDown">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">收货单位</label>
                            <div class="col-lg-3">
                                <input type="text" class="form-control input-sm" id="addOrderCtrl_takeGoodsCompanyName" ng-model="takeGoodsCompanyName" placeholder="请填写收货单位" name="takeGoodsCompany">
                            </div>
                            <label class="pull-left control-label w-xxs">收货人<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <input type="text" class="form-control input-sm" id="addOrderCtrl_consignee" ng-model="consignee" placeholder="请填写收货人" name="consignee" required>
                            </div>
                            <label class="pull-left control-label w-xxss">收货人号码<span class="text-danger">*</span></label>
                            <div class="col-lg-2">
                                <input type="text" class="form-control input-sm" id="addOrderCtrl_consigneePhone" ng-model="consigneePhone" ng-pattern="/^1\d{10}$/" placeholder="请填写收货人号码" name="consigneePhone" required>
                            </div>
                            <div class="line pull-in"></div>
                            <label class="w-sm pull-left control-label">发货单号</label>
                            <div class="col-lg-2">
                                <input type="text" class="form-control input-sm" id="addOrderCtrl_shipOrderId" ng-model="shipOrderId" placeholder="请填写发货单号" name="shipOrderId">
                            </div>
                            <div class="pull-left m-l">
                                <button class="btn  btn-info btn-addon btn-sm" id="addOrderCtrl_addChildOrderLineFn" ng-show="showAddChildOrderBtn" ng-disabled="!orderTotalForm.$valid || !orderChildrenForm.$valid || !orderDetailForm.$valid" ng-click="addChildOrderLine()"><i class="fa fa-plus"></i>新增子线路</button>
                            </div>
                            <div class="pull-left m-l">
                                <button class="btn  btn-success btn-addon btn-sm" id="addOrderCtrl_saveChildOrderLineFn" ng-show="!showAddChildOrderBtn" ng-disabled="!orderTotalForm.$valid || !orderChildrenForm.$valid" ng-click="saveChildOrderLine()"><i class="glyphicon glyphicon-floppy-saved"></i>保存子线路</button>
                            </div>
                        </div>
                    </ng-form>
                    <div class="form-group">
                        <div class="wrapper-sm font-bold">
                            总线路货物应收信息<span class="text-danger">*</span>
                        </div>
                        <div class="wrapper-sm m-t-n">
                            <div class="table-responsive table-cel-k">
                                <table class="table-bordered table-hover">
                                    <thead class="table-thea">
                                        <tr>
                                            <th width="9%">发货地址</th>
                                            <th width="9%">中转地</th>
                                            <th width="9%">送货地址</th>
                                            <th width="9%">发货时间</th>
                                            <th width="9%">到货时间</th>
                                            <th width="9%">里程数</th>
                                            <th width="9%">货物类别</th>
                                            <th width="9%">货物名称</th>
                                            <th width="9%">货物数量</th>
                                            <th width="5%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody class="tab-tbod">
                                        <tr ng-repeat="item in orderLine">
                                            <td title="{{item.shipDetail}}">{{item.shipDetail}}</td>
                                            <td>
                                                <span ng-repeat="items in item.viaListData">
													<span title="{{items.province}}{{items.city}}{{items.county}}">{{items.province}}{{items.city}}{{items.county}}&nbsp</span>
                                                </span>
                                            </td>
                                            <td title="{{item.deliverDetail}}">{{item.deliverDetail}}</td>
                                            <td title="{{item.shipTime}}">{{item.shipTime}}</td>
                                            <td title="{{item.arriveTime}}">{{item.arriveTime}}</td>
                                            <td title="{{item.mileage}}">{{item.mileage}}</td>
                                            <td title="{{item.goodsTypeName}}">{{item.goodsTypeName}}</td>
                                            <td title="{{item.goodsName}}">{{item.goodsName}}</td>
                                            <td title="{{item.goodsNum + item.goodsNumUnitStr}}">{{item.goodsNum + item.goodsNumUnitStr}}</td>
                                            <td>
                                                <a id="addOrderCtrl_editOrderLineFn" data-toggle="modal" data-target="#orderTotal" title="编辑" class="fa fa-edit m-l-xs  primary text-info" ng-click="editOrderLine(item)"></a>
                                                <a id="addOrderCtrl_deleteOrderLineFn" data-toggle="modal" title="删除" data-target="#lineprice" class="fa fa-trash-o m-l-xs primary text-info" ng-click="deleteOrderLine()"></a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="wrapper-sm font-bold">
                            子线路货物应收信息<span class="text-danger">*</span>
                        </div>
                        <div class="wrapper-sm m-t-n">
                            <div class="table-responsive table-cel-k">
                                <table class="table-bordered table-hover">
                                    <thead class="table-thea">
                                        <tr>
                                            <th width="9%">发货地址</th>
                                            <th width="9%">中转地</th>
                                            <th width="9%">送货地址</th>
                                            <th width="9%">货物类别</th>
                                            <th width="9%">货物名称</th>
                                            <th width="9%">货物数量</th>
                                            <th width="9%">应收单价</th>
                                            <th width="9%">应收总价</th>
                                            <th width="9%">结算单位</th>
                                            <th width="5%">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody class="tab-tbod">
                                        <tr ng-repeat="item in childOrderLine">
                                            <td title="{{item.shipDetail}}">{{item.shipDetail}}</td>
                                            <td>
                                                <span ng-repeat="items in item.viaListData">
													<span title="{{items.province}}{{items.city}}{{items.county}}">{{items.province}}{{items.city}}{{items.county}}&nbsp;</span>
                                                </span>
                                            </td>
                                            <td title="{{item.deliverDetail}}">{{item.deliverDetail}}</td>
                                            <td title="{{item.goodsTypeName}}">{{item.goodsTypeName}}</td>
                                            <td title="{{item.goodsName}}">{{item.goodsName}}</td>
                                            <td title="{{item.goodsNum + item.goodsNumUnitStr}}">{{item.goodsNum + item.goodsNumUnitStr}}</td>
                                            <td title="{{item.receivablePrice + item.receivablePriceUnitStr}}">{{item.receivablePrice + item.receivablePriceUnitStr}}</td>
                                            <td title="{{item.receivableTotal}}元">
                                                <span ng-if="!item.receivableTotal||item.receivableTotal==''||item.receivableTotal=='0'"></span>
                                                <span ng-if="item.receivableTotal||!item.receivableTotal==''||item.receivableTotal!='0'">{{item.receivableTotal}}元</span>
                                            </td>
                                            <td title="{{item.reckoner}}">{{item.reckoner}}</td>
                                            <td>
                                                <a data-toggle="modal" id="addOrderCtrl_editChild{{item.index}}" data-target="#orderChildren" title="编辑" class="fa fa-edit m-l-xs primary text-info" ng-click="editChildOrderLine(item.index)"></a>
                                                <a data-toggle="modal" id="addOrderCtrl_deleteChild{{item.index}}" title="删除" data-target="#lineprice" class="fa fa-trash-o m-l-xs primary text-info" ng-click="deleteChildOrderLine(item.index,item.entity)"></a>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="panel-heading font-bold m-b-sm">
                            所需车辆信息
                        </div>
                        <label class="w-sm pull-left control-label">所需车型<span class="text-danger">*</span></label>
                        <div class="pull-left m-l-sm m-r-sm">
                            <select id="carType" class="form-control input-sm" ng-model="carType" name="carType" required ng-options="x.value as x.text for x in carTypeDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="pull-left control-label">所需车长<span class="text-danger">*</span></label>
                        <div class="pull-left m-l-sm m-r-sm">
                            <select id="carLength" class="form-control input-sm" ng-model="carLength" name="carLength" required ng-options="x.value as x.text for x in carLengthDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="pull-left control-label">承运方式<span class="text-danger">*</span></label>
                        <div class="pull-left m-l-sm m-r-sm">
                            <select id="addOrderCtrl_carriageWay" class="form-control input-sm" ng-model="carriageWay" name="carrierCategory" required ng-options="x.value as x.text for x in carriageWayDropDown">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <label class="pull-left control-label">装车效果</label>
                        <div class="col-lg-2">
                            <input type="text" id="addOrderCtrl_loadingResult" class="form-control input-sm" ng-model="loadingResult" placeholder="请填写装车效果" name="loadingResult">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="panel-heading font-bold m-b-sm">
                            附件信息
                        </div>

                        <div class="col-md-4 m-l-xs">
                            <label class="pull-left m-l m-r">附件上传</label>
                            <div class="col-md-3 form-group">
                                <input id="addOrderCtrl_uploader" type="file" file-read name="attachment-uploader" uploader="attachmentUploader" multiple />
                            </div>
                        </div>
                        <div class="wrapper-sm">
                            <div class="line  pull-in"></div>
                            <div class="wrapper-sm bg-light dk b-b m-b-xs hidden">
                                <span class="">上传文件数: <b class="badge bg-info">{{ attachmentUploader.queue.length }}</b></span>
                            </div>
                            <table class="table bg-white-only b-a">
                                <thead>
                                    <tr>
                                        <th width="50%">名称</th>
                                        <th >大小</th>
                                        <th >进度</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr ng-repeat="item in attachmentUploader.queue">
                                        <td>
                                            <strong>{{ item.fileName|| item.fileName }}</strong>
                                        </td>
                                        <td  nowrap>{{ item.fileSize/1024/1024|number:2 }} MB</td>
                                        <td >
                                            <div class="progress" style="margin-bottom: 0;">
                                                <div class="progress-bar" role="progressbar" ng-style="{ 'width': item.progress + '%' }"></div>
                                            </div>
                                        </td>
                                        <td class="text-center">
                                            <span ng-show="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>
                                            <span ng-show="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>
                                            <span ng-show="item.isError"><i class="glyphicon glyphicon-remove"></i></span>
                                        </td>
                                        <td nowrap>
                                            <button id="addOrderCtrl_uploadFn" class="btn btn-success btn-xs" ng-click="attachmentUploader.upload(item)" ng-disabled="item.isReady || item.isUploading || item.isSuccess">
                                                <span class="glyphicon glyphicon-upload"></span> 上传
                                            </button>

                                            <button id="addOrderCtrl_remove" class="btn btn-danger btn-xs" ng-click="[attachmentUploader.onDelete(item)]">
                                                <span class="glyphicon glyphicon-trash"></span> 删除
                                            </button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <button id="addOrderCtrl_uploaderAll" class="btn btn-sm btn-addon btn-success" ng-click="attachmentUploader.uploadAll()" ng-disabled="!attachmentUploader.getNotUploadedItems().length">
                                <i class="fa fa-arrow-circle-o-up"></i> 全部上传
                            </button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="panel-heading font-bold m-b-sm">
                            备注信息
                        </div>
                        <label class="col-lg-1 pull-left control-label">备注</label>
                        <div class="col-lg-10">
                            <textarea id="addOrderCtrl_orderRemarks" class="form-control" ng-model="orderRemarks" placeholder="请填写备注" name="attachmentDetails"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-1 pull-left control-label"></label>
                        <div class="col-lg-5">
                            <button id="addOrderCtrl_orderSave" class="pull-right-xs btn btn-sm btn-info btn-addon" ng-click="orderSave()" ng-disabled="enabledSaveBtn"><i class="fa fa-check"></i>发货发布</button>
                            <a id="addOrderCtrl_shipBack" ng-click="shipBack()" class="pull-right-xs btn  btn-primary btn-addon btn-sm"><i class="fa fa-reply"></i>返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>